#ifndef GLOBALSETTING_H
#define GLOBALSETTING_H

#include <QString>

/*
Save global variables
*/
enum class geomUnitType
{
    km,
    m,
    dm,
    cm,
    mm,
    um,
    nm
};

enum class angleUnitType
{
    deg,
    rad
};

class globalSetting
{
public:
    globalSetting();
    geomUnitType getGeomUnit();
    angleUnitType getAngleUnit();
    int getDebugLevel();
    void setGeomUnit(const geomUnitType &type);
    void setAngleUnit(const angleUnitType &type);
    void setDebugLevel(const int &level);
private:
    geomUnitType _geomUnit;
    angleUnitType _angleUnit;
    QString _title;
    QString _author;
    QString _describe;
    int _debugLevel;
};

#endif // GOLBALSETTING_H
